package dao;

/**
 *
 * @author Alexander
 */
public class JPADaoFactory implements DAOFactory {

    private static JPADaoFactory instance;

    private JPADaoFactory() {
    }

    @Override
    public UserDAO getUserDAO() {
        return UserJPADAO.getInstance();
    }

    public static synchronized JPADaoFactory getInstance() {
        if (instance == null) {
            instance = new JPADaoFactory();
        }
        return instance;
    }
}
